package com.ruoyi.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 比赛项目对象 tb_race
 *
 * @author ruoyi
 * @date 2024-01-22
 */
@TableName("tb_race")
@EqualsAndHashCode(callSuper = true)
@Data
public class Race extends Model<Race> {

    private Long id;

    // 指定该字段不查询
    @TableField(exist = false)
    private String gameName;

    /**
     * 所属的运动会id
     */
    private Integer gameId;

    /**
     * 项目名称
     */
    @Excel(name = "项目名称")
    private String raceName;

    /**
     * 项目类型
     */
    @Excel(name = "项目类型")
    private Long raceType;

    /**
     * 比赛开始时间
     */
    @Excel(name = "比赛开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /**
     * 场地图片
     */
    @Excel(name = "场地图片")
    private String img;

    @Excel(name = "参赛最多人数")
    private Integer maxNum;

    /**
     * 参赛人数
     */
    @Excel(name = "参赛人数")
    private Integer partNum;

    /**
     * 是否结束 0:未结束 1:已结束
     */
    @Excel(name = "是否结束 0:未结束 1:已结束")
    private Integer isOver;
}
